Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: improve dx of kakao map #50

Merged
merged 14 commits into from
Jul 9, 2024
Merged

feat: improve dx of kakao map #50

merged 14 commits into from
Jul 9, 2024

Conversation

poiu694
Copy link
Member

@poiu694 poiu694 commented Jul 9, 2024

Description

구현 내용 및 작업한 내용

  • 카카오 맵을 아래처럼 사용할 수 있습니다.
  • 디자인과 다른 부분 수정했어용
  • 카카오 맵에 dragEnd시점에 session에 map boundary를 넣어놨습니다. (검색이나 이런데서 쿼리 파람으로 주지 않기 위함인데, 쿼리 파람으로 하면 관련 속성 다 빼면 될 듯)

image

Checklist

PR 등록 전 확인한 것

  • 올바른 타켓 브랜치를 설정하였는가
  • PR 제목은 포맷과 내용 둘 다 알맞게 작성되었는가 (e.g., feat: add login page)
  • Description에 PR을 구체적으로 설명했는가

Copy link

github-actions bot commented Jul 9, 2024

The latest updates on your projects. Preview: https://vitamin-c-hgyc5wbvb-poiu694s-projects.vercel.app

Name Status Preview Updated
VitaminC_Web ✅ Ready Visit Preview 2024-07-09T00:22:07Z

Copy link

github-actions bot commented Jul 9, 2024

The latest updates on your projects. Preview: https://vitamin-c-p6ph1nobx-poiu694s-projects.vercel.app

Name Status Preview Updated
VitaminC_Web ✅ Ready Visit Preview 2024-07-09T00:31:34Z

- add 'zoom_changed' event listener
- change existing 'level' to 'defaultLevel'
- update effect deps
Copy link

github-actions bot commented Jul 9, 2024

The latest updates on your projects. Preview: https://vitamin-c-5ib7jgh5f-poiu694s-projects.vercel.app

Name Status Preview Updated
VitaminC_Web ✅ Ready Visit Preview 2024-07-09T06:42:41Z

- remove level state
- remove Effect
Copy link

github-actions bot commented Jul 9, 2024

The latest updates on your projects. Preview: https://vitamin-c-2cxwwappm-poiu694s-projects.vercel.app

Name Status Preview Updated
VitaminC_Web ✅ Ready Visit Preview 2024-07-09T07:34:40Z

Copy link
Member

@hee-suh hee-suh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

엄청난 개발자 경험 향상!!! 최고예요!!!
추가하고 싶은 기능이랑 간단한 수정사항은 커밋해두었습니다!
따봉도치

src/app/page.tsx Show resolved Hide resolved
src/components/kakao-map/kakao-map.tsx Show resolved Hide resolved
Copy link

github-actions bot commented Jul 9, 2024

The latest updates on your projects. Preview: https://vitamin-c-ew91w57fv-poiu694s-projects.vercel.app

Name Status Preview Updated
VitaminC_Web ✅ Ready Visit Preview 2024-07-09T07:54:14Z

@poiu694 poiu694 merged commit 3f3eeb7 into main Jul 9, 2024
3 checks passed
@poiu694 poiu694 deleted the feature/kakao-map-dx branch July 9, 2024 08:51
Copy link
Contributor

@Pridesd Pridesd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생캅..

const position = new kakao.maps.LatLng(latitude, longitude)
const content = createMarkerContent(type, iconSize, isSaved, className)

const customOverlay = new kakao.maps.CustomOverlay({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

마커를 이 방식으로 사용할 수 있다는 게 신기하네요..


if (IconComponent) {
const baseIcon = createBaseIcon(IconComponent, size)
container.appendChild(baseIcon)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 부분은 maeker에 이미지 url를 입력하는 게 아니라 marker가 들어가는 공간에 아이콘 컴포넌트를 삽입하는 걸로 이해하면 될까요?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants